﻿using System;

namespace studentSubsidy.Entity.User
{
public class RegisterQuery
    {
        private string username;
        private string password;
        private string name;
        private string major;
        private string phone;
        private string address;
        private DateTime enrollment;
        private string remark;
        private string role;

        public RegisterQuery(string username, string password, string name, string major, string phone, string address, DateTime enrollment,string remark,string role)
        {
            this.username = username;
            this.password = password;
            this.name = name;
            this.major = major;
            this.phone = phone;
            this.address = address;
            this.enrollment = enrollment;
            this.remark = remark;
            this.role = role;
        }

        public string Role
        {
            get => role;
            set => role = value ?? throw new ArgumentNullException(nameof(value));
        }

        public string Remark
        {
            get => remark;
            set => remark = value ?? throw new ArgumentNullException(nameof(value));
        }

        public string Username
        {
            get => username;
            set => username = value ?? throw new ArgumentNullException(nameof(value));
        }

        public string Password
        {
            get => password;
            set => password = value ?? throw new ArgumentNullException(nameof(value));
        }

        public string Name
        {
            get => name;
            set => name = value ?? throw new ArgumentNullException(nameof(value));
        }

        public string Major
        {
            get => major;
            set => major = value ?? throw new ArgumentNullException(nameof(value));
        }

        public string Phone
        {
            get => phone;
            set => phone = value ?? throw new ArgumentNullException(nameof(value));
        }

        public string Address
        {
            get => address;
            set => address = value ?? throw new ArgumentNullException(nameof(value));
        }

        public DateTime Enrollment
        {
            get => enrollment;
            set => enrollment = value;
        }
    }
}